import request from "../utils/request";

//条件查询
export const queryOutboundOrder = (page,pageSize,status,invoiceCode,customerName) => {return request.get(`/outboundOrder?page=${page}&pageSize=${pageSize}&status=${status}&invoiceCode=${invoiceCode}&customerName=${customerName}`)};

//添加
export const addOutboundOrder = (data) => {return request.post('/outboundOrder',data)};

//回显查询
export const queryOutboundOrderById = (id) => {return request.get(`/outboundOrder/${id}`)};

//删除
export const deleteOutboundOrder = (id) => {return request.delete(`/outboundOrder/${id}`)};

//修改状态
export const updateOutboundOrder = (data) => {return request.put('/outboundOrder',data)};


//出库的条件查询
export const queryOutbound = (page,pageSize,invoiceCode,customerName,skuTitle) => {return request.get(`/outboundOrder/out?page=${page}&pageSize=${pageSize}&invoiceCode=${invoiceCode}&customerName=${customerName}&skuTitle=${skuTitle}`)};

//出库的修改状态
export const updateOutbound = (data) => {return request.put('/outboundOrder/out',data)};

//签收的条件查询
export const queryOutboundReceive = (page,pageSize,invoiceCode,customerName,skuTitle) => {return request.get(`/outboundOrder/receive?page=${page}&pageSize=${pageSize}&invoiceCode=${invoiceCode}&customerName=${customerName}&skuTitle=${skuTitle}`)};

//签收的修改状态
export const updateOutboundReceive = (data) => {return request.put('/outboundOrder/receive',data)};